package com.fiona.start;

import java.util.List;

import com.fiona.common.base.config.FionaConfig;
import com.fiona.common.extension.ExtensionLoader;

/**
 * 启动Fiona框架
 * 
 * @author huacongnan
 *
 */
public class StartFiona {
	/**
	 * 启动Fiona框架
	 * 
	 * @param clazz
	 */
	public static void start(Class<?> clazz) {
		FionaConfig.loadConfig();
		List<IStart> startList = ExtensionLoader.getExtensionLoader(IStart.class).getExtensionList();
		for (int i = 0; i < startList.size(); i++) {
			startList.get(i).start(clazz);
		}
	}
}
